import { Menu } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

 

//获取组织架构tree结构
export const getOrganizationTreeApi = (params: FormData) => {
  return http.get(PORT1+`/personnel/orgs/menus`, params, { cancel: false });
};
 

//获取下载文件列表
export const getTaskListApi = (params: FormData) => {
  return http.post(PORT1+`/task-list/list`, params, { cancel: false });
};
 
//取消单条任务

export const delTaskOneApi = (params: FormData) => {
  return http.get(PORT1+`/task-list/delete`, params, { cancel: false });
};


//清空所有下载列表
export const delTaskAllApi = (params: FormData) => {
  return http.get(PORT1+`/task-list/delete-all`, params, { cancel: false });
};

